package com.goldfish666.remote_control.template;

import com.goldfish666.remote_control.dto.common.ByteValueDTO;
import com.goldfish666.remote_control.entity.common.Command;
import com.tuyang.beanutils.annotation.BeanCopySource;
import com.tuyang.beanutils.annotation.CopyCollection;

import java.util.List;

@BeanCopySource(source = Command.class)
public class CommandEntity2DTO {

    @CopyCollection(targetClass = ByteValueDTO.class, optionClass = ByteValueEntity2DTO.class)
    private List<ByteValueDTO> bytes;
}
